# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corekeyboard
pkgver=4.5.0
pkgrel=0
pkgdesc="A x11 based virtual keyboard from C-Suite"
arch="all"
url="https://gitlab.com/cubocore/coreapps/corekeyboard"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev qt5-qtx11extras-dev libcprime-dev libxtst-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/coreapps/corekeyboard/-/archive/v$pkgver/corekeyboard-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
225465fc3d5ff196c0f3c7d7c35f2183ff50acc0ce056926a3571fa424ffc7b6542980724d5415b43131418d7e1d09b4f29fd959c0de7c1ea72c03e21e3be5df  corekeyboard-4.5.0.tar.gz
"
